'use strict';

const allQualities = {
  MP3_128: {
    id: 1,
    name: 'MP3 - 128 kbps',
    aproxMaxSizeMb: '100',
  },
  MP3_256: {
    id: 5,
    name: 'MP3 - 256 kbps',
  },
  MP3_320: {
    id: 3,
    name: 'MP3 - 320 kbps',
    aproxMaxSizeMb: '200',
  },
  FLAC: {
    id: 9,
    name: 'FLAC - 1411 kbps',
    aproxMaxSizeMb: '700',
  },
  MP3_MISC: {
    id: 0,
    name: 'User uploaded song',
  },
};

class MusicQualities {
  constructor(defaultQuality) {
    this.qualities = allQualities;
    this.selectedQuality = defaultQuality;
  }
}

const musicQualities = new MusicQualities(allQualities.MP3_320);
module.exports = musicQualities;
